package com.example.mall.Mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.example.mall.entity.Brands;
import com.example.mall.vo.TypeByProductVo;
import com.example.mall.vo.brands.FindAllVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface BrandsMapper extends BaseMapper<Brands> {

    List<FindAllVo> findAllBrands(IPage<TypeByProductVo> page);

    List findByFlow(IPage<TypeByProductVo> page);

    List findByBrandsName(IPage<TypeByProductVo> page, @Param("name") String name);
}
